gl renderer: Add offscreen ops without offset applied
authorTimm Bäder <mail@baedert.org>
Sun, 2 Dec 2018 07:17:34 +0000 (08:17 +0100)
committerTimm Bäder <mail@baedert.org>
Sun, 2 Dec 2018 12:25:43 +0000 (13:25 +0100)
When doing color matrix nodes. This fixes color matrix node with scale =
2.

gsk/gl/gskglrenderer.c

index 0629bcd0e19113120b957bbd73ed51da8f44abc7..d6bc6ca8dab813f94236897af176f4b4f1e1d03b 100644 (file)
@@ -968,7 +968,12 @@ render_color_matrix_node (GskGLRenderer       *self,
   int texture_id;
   gboolean is_offscreen;
 
-  add_offscreen_ops (self, builder, min_x, max_x, min_y, max_y,
+  /* Pass min_x/max_x/min_y/max_y without builder->dx/dy! */
+  add_offscreen_ops (self, builder,
+                     node->bounds.origin.x,
+                     node->bounds.origin.x + node->bounds.size.width,
+                     node->bounds.origin.y,
+                     node->bounds.origin.y + node->bounds.size.height,
                      gsk_color_matrix_node_get_child (node),
                      &texture_id, &is_offscreen, FALSE, TRUE);